/*
 * jiyan1
 */
package com.jiyan.account.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

import com.rzhkj.core.base.BaseMybatisDAO;
import com.rzhkj.core.base.BaseMybatisSVImpl;

import com.jiyan.account.facade.AccountSV;
import com.jiyan.account.dao.AccountDAO;
import com.jiyan.account.entity.Account;


/**
 * 账户
 * @author jiyan
 */
@Component
@Service
public class AccountSVImpl extends BaseMybatisSVImpl<Account,Long> implements AccountSV{


	@Resource
	private AccountDAO accountObjDAO;

    @Override
    protected BaseMybatisDAO getBaseMybatisDAO(){
		return accountObjDAO;
	}


	/**
	 * 加载对象账户 通过code
	 * @param code 编码
	 * @return Account
	 */
     @Override
     public Account loadByCode(java.lang.String code) {
		return accountObjDAO.loadByCode(code);
	 }
	/**
	 * 加载对象账户 通过account
	 * @param account 账户
	 * @return Account
	 */
     @Override
     public Account loadByAccount(java.lang.String account) {
		return accountObjDAO.loadByAccount(account);
	 }

     /**
      * 删除对象账户
	   * @param id id* @param code 编码* @param account 账户
      */
	 @Override
     public void delete(java.lang.Long id,java.lang.String code,java.lang.String account) {
		accountObjDAO.delete(id,code,account);
	 }



}